package com.guigu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.CommentOnCommodity;


import java.util.Map;

public interface CommentOnCommodityService extends IService<CommentOnCommodity> {
    //添加
    Map addCommodity(CommentOnCommodity commodity);

    //根据id查询
    CommentOnCommodity queryById(Integer pid);

    //分页及所有
    Page<CommentOnCommodity> queryAllComment(CommentOnCommodity comment, Integer pageno, Integer pagesize);
}
